package com.oauth.user.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.oauth.user.dto.AccountDto;
import com.oauth.user.mapper.AccountMapper;
import com.oauth.user.pojo.Account;
import com.oauth.user.pojo.AccountBind;

@Component
public class AccountService {

    @Autowired
    private AccountMapper accountMapper;
    
    public AccountDto selectAccountDtoByClientIdAndAccount(String clientId, String account) {
        return accountMapper.selectAccountDtoByClientIdAndAccount(clientId, account);
    }
    
    public Account selectAccountByAccount(String account) {
        return accountMapper.selectAccountByAccount(account);
    }
    
    public AccountBind selectAccountBindByClientIdAndAccount(String clientId, String account) {
        return accountMapper.selectAccountBindByClientIdAndAccount(clientId, account);
    }
    
}
